package com.cbg.archives.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 个人档案VO
 *
 * @author wangjuzheng
 * @date 2019-10-31
 **/
@Data
public class ArchivesVO implements Serializable {

    /**
     * 父级id
     */
    @ApiModelProperty(value = "父级id")
    private Long pid;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    @NotBlank(message = "名称为空")
    @Length(max = 32,message = "分类名称不能超过32位")
    private String name;

    /**
     * 图标
     */
    @ApiModelProperty(value = "图标")
    private String icon;
}